<#assign base="${request.getContextPath()}" />
<base href="${base}/" >
<script type="text/javascript" >
var base = '${base}';
</script>